package com.fengmi.vo;

import lombok.*;

/**
 * @Author 123
 * @Date 2022/2/9 20:33
 * @Version 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@RequiredArgsConstructor
public class ResultVO <T>{
    //标志位
    @NonNull
    private boolean success;
    @NonNull
    private String msg;

    private T data;

    private String code;

    public ResultVO(@NonNull boolean success, @NonNull String msg, T data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
}
